2 // NSArray+mapWithBlock.m
5 // Created by J Osborne on 2/26/13.
9 #import "NSArray+mapWithBlock.h"
11 @implementation NSArray (mapWithBlock)
13 -(NSArray*)mapWithBlock:(mapBlock)block
15 NSMutableArray *mapped = [[NSMutableArray alloc] initWithCapacity:self.count];
17 for (id obj in self) {
18 [mapped addObject:block(obj)];